<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp" %>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>编辑场景</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="${path }/static/layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="${path }/static/css/public.css" media="all" />
</head>
<body class="childrenBody">
	<form class="layui-form">
		<div class="layui-col-md12 layui-col-xs12">
			<div class="layui-row layui-col-space10">
				<div class="layui-col-md12 layui-col-xs12" style="padding: 40px; background-color: #F2F2F2;">
					<blockquote class="layui-elem-quote title"><i class="seraph icon-caidan"></i>场景</blockquote>
					<div class="layui-form-item" style="margin-top: 10px;">
						<label class="layui-form-label">场景名称</label>
						<input id="id" name="id" type="hidden"  value="${callRatio.id}">
						<div class="layui-input-block layui-col-md4 layui-col-xs4" style="margin-left: 0px;">
							<input type="text" id="name" name="name" value="${callRatio.name}" lay-verify="title" autocomplete="off" placeholder="请输入标题" class="layui-input">
						</div>
					</div>
					<blockquote class="layui-elem-quote title"><i class="seraph icon-caidan"></i>主叫属性</blockquote>
					<div class="layui-form-item" style="margin-top: 5px;">
						<label class="layui-form-label">归属地</label>
						<div class="layui-input-inline">
							<select id="callingProvince" name="callingProvince" lay-filter="callingProvince" class="callingProvince">
								<option value="">请选择省</option>
							</select>
						</div>
						<div class="layui-input-inline">
							<select id="callingCity" name="callingCity" lay-filter="callingCity" disabled>
								<option value="">请选择市</option>
							</select>
						</div>
					</div>
					<div class="layui-form-item" style="margin-top: 5px;">
						<label class="layui-form-label">漫游地</label>
						<div class="layui-input-inline">
							<select id="roamProvince" name="roamProvince" lay-filter="roamProvince" class="roamProvince" disabled>
								<option value="">请选择省</option>
							</select>
						</div>
						<div class="layui-input-inline">
							<select id="roamCity" name="roamCity" lay-filter="roamCity" disabled>
								<option value="">请选择市</option>
							</select>
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">性别</label>
						<div class="layui-input-block">
						<c:choose> 
							<c:when test="${callRatio.callingSex == 1}"><!--如果 --> 
								<input type="radio" name="callingSex" value="1" title="男" checked="">  
							</c:when>      
							<c:otherwise><!--否则 -->
								<input type="radio" name="callingSex" value="1" title="男">  
							</c:otherwise> 
						</c:choose>
						<c:choose> 
							<c:when test="${callRatio.callingSex == 2}"><!--如果 --> 
								<input type="radio" name="callingSex" value="2" title="女" checked="">  
							</c:when>      
							<c:otherwise><!--否则 -->
								<input type="radio" name="callingSex" value="2" title="女">  
							</c:otherwise> 
						</c:choose>
						<c:choose> 
							<c:when test="${callRatio.callingSex == 0}"><!--如果 --> 
								<input type="radio" name="callingSex" value="0" title="全部" checked="">  
							</c:when>      
							<c:otherwise><!--否则 -->
								<input type="radio" name="callingSex" value="0" title="全部">
							</c:otherwise> 
						</c:choose>
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">年龄</label>
						<div class="layui-input-block">
							<c:choose> 
								<c:when test="${callRatio.callingAge == '0'}"><!--如果 --> 
									<input type="radio" id="callingAge" name="callingAge" value="0" title="不限" checked="">
								</c:when>      
								<c:otherwise><!--否则 -->
									<input type="radio" id="callingAge" name="callingAge" value="0" title="不限">
								</c:otherwise> 
							</c:choose>
							<c:choose> 
								<c:when test="${callRatio.callingAge == '0-19'}"><!--如果 --> 
									<input type="radio" id="callingAge" name="callingAge" value="0-19" title="0~19" checked="">
								</c:when>      
								<c:otherwise><!--否则 -->
									<input type="radio" id="callingAge" name="callingAge" value="0-19" title="0~19">
								</c:otherwise> 
							</c:choose>
							<c:choose> 
								<c:when test="${callRatio.callingAge == '20-29'}"><!--如果 --> 
									<input type="radio" id="callingAge" name="callingAge" value="20-29" title="20~29" checked="">
								</c:when>      
								<c:otherwise><!--否则 -->
									<input type="radio" id="callingAge" name="callingAge" value="20-29" title="20~29">
								</c:otherwise> 
							</c:choose>
							<c:choose> 
								<c:when test="${callRatio.callingAge == '30-39'}"><!--如果 --> 
									<input type="radio" id="callingAge" name="callingAge" value="30-39" title="30~39" checked="">
								</c:when>      
								<c:otherwise><!--否则 -->
									<input type="radio" id="callingAge" name="callingAge" value="30-39" title="30~39">
								</c:otherwise> 
							</c:choose>
							<c:choose> 
								<c:when test="${callRatio.callingAge == '40-49'}"><!--如果 --> 
									<input type="radio" id="callingAge" name="callingAge" value="40-49" title="40~49" checked="">
								</c:when>      
								<c:otherwise><!--否则 -->
									<input type="radio" id="callingAge" name="callingAge" value="40-49" title="40~49">
								</c:otherwise> 
							</c:choose>
							<c:choose> 
								<c:when test="${callRatio.callingAge == '50-59'}"><!--如果 --> 
									<input type="radio" id="callingAge" name="callingAge" value="50-59" title="50~59" checked="">
								</c:when>      
								<c:otherwise><!--否则 -->
									<input type="radio" id="callingAge" name="callingAge" value="50-59" title="50~59">
								</c:otherwise> 
							</c:choose>
							<c:choose> 
								<c:when test="${callRatio.callingAge == '60-100'}"><!--如果 --> 
									<input type="radio" id="callingAge" name="callingAge" value="60-100" title="60及以上" checked="">
								</c:when>      
								<c:otherwise><!--否则 -->
									<input type="radio" id="callingAge" name="callingAge" value="60-100" title="60及以上">
								</c:otherwise> 
							</c:choose>
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">拨打频次</label>
						<div class="layui-input-block">
							<c:choose> 
								<c:when test="${callRatio.callingFrequency == '0'}"><!--如果 --> 
									<input type="radio" name="callingFrequency" value="0" title="不限" checked="">
								</c:when>      
								<c:otherwise><!--否则 -->
									<input type="radio" name="callingFrequency" value="0" title="不限">
								</c:otherwise> 
							</c:choose>
							<c:choose> 
								<c:when test="${callRatio.callingFrequency == '0-49'}"><!--如果 --> 
									<input type="radio" name="callingFrequency" value="0-49" title="0~49" checked="">
								</c:when>      
								<c:otherwise><!--否则 -->
									<input type="radio" name="callingFrequency" value="0-49" title="0~49">
								</c:otherwise> 
							</c:choose>
							<c:choose> 
								<c:when test="${callRatio.callingFrequency == '50-99'}"><!--如果 --> 
									<input type="radio" name="callingFrequency" value="50-99" title="50~99" checked="">
								</c:when>      
								<c:otherwise><!--否则 -->
									<input type="radio" name="callingFrequency" value="50-99" title="50~99">
								</c:otherwise> 
							</c:choose>
							<c:choose> 
								<c:when test="${callRatio.callingFrequency == '100-199'}"><!--如果 --> 
									<input type="radio" name="callingFrequency" value="100-199" title="100~199" checked="">
								</c:when>      
								<c:otherwise><!--否则 -->
									<input type="radio" name="callingFrequency" value="100-199" title="100~199">
								</c:otherwise> 
							</c:choose>
							<c:choose> 
								<c:when test="${callRatio.callingFrequency == '200-10000'}"><!--如果 --> 
									<input type="radio" name="callingFrequency" value="200-10000" title="200及以上" checked="">
								</c:when>      
								<c:otherwise><!--否则 -->
									<input type="radio" name="callingFrequency" value="200-10000" title="200及以上">
								</c:otherwise> 
							</c:choose>
						</div>
					</div>
					<div class="layui-form-item">
						<div class="layui-inline">
							<label class="layui-form-label">通话时间</label>
							<div class="layui-inline">
								<input type="text" class="layui-input" id="callingTime" value="${callRatio.callingTime}" name="callingTime" placeholder="请选择日期范围" readonly />
							</div>
						</div>
					</div>
					<div class="layui-form-item">
						<div class="layui-inline">
						<label class="layui-form-label">主叫占比</label>
							<div class="layui-input-inline" style="width: 100px;">
								<input type="text" id="priceMin" name="priceMin" value="${callRatio.priceMin}" placeholder="%" lay-verify="number" autocomplete="off" class="layui-input">
							</div>
							<div class="layui-form-mid">-</div>
							<div class="layui-input-inline" style="width: 100px;">
								<input type="text" id="priceMax" name="priceMax" value="${callRatio.priceMax}" placeholder="%" lay-verify="number" autocomplete="off" class="layui-input">
							</div>
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">主叫号码被叫频次</label>
						<div class="layui-input-block">
							<c:choose> 
								<c:when test="${callRatio.calledFrequency == '0'}"><!--如果 --> 
									<input type="radio" name="calledFrequency" value="0" title="不限" checked="">
								</c:when>      
								<c:otherwise><!--否则 -->
									<input type="radio" name="calledFrequency" value="0" title="不限">
								</c:otherwise> 
							</c:choose>
							<c:choose> 
								<c:when test="${callRatio.calledFrequency == '0-9'}"><!--如果 --> 
									<input type="radio" name="calledFrequency" value="0-9" title="0~9" checked="">
								</c:when>      
								<c:otherwise><!--否则 -->
									<input type="radio" name="calledFrequency" value="0-9" title="0~9">
								</c:otherwise> 
							</c:choose>
							<c:choose> 
								<c:when test="${callRatio.calledFrequency == '10-19'}"><!--如果 --> 
									<input type="radio" name="calledFrequency" value="10-19" title="10~19" checked="">
								</c:when>      
								<c:otherwise><!--否则 -->
									<input type="radio" name="calledFrequency" value="10-19" title="10~19">
								</c:otherwise> 
							</c:choose>
							<c:choose> 
								<c:when test="${callRatio.calledFrequency == '20-10000'}"><!--如果 --> 
									<input type="radio" name="calledFrequency" value="20-10000" title="20及以上" checked="">
								</c:when>      
								<c:otherwise><!--否则 -->
									<input type="radio" name="calledFrequency" value="20-10000" title="20及以上">
								</c:otherwise> 
							</c:choose>
						</div>
					</div>
					<div class="layui-form-item" style="margin-top: 20px;">
						<div class="layui-input-block">
							<button class="layui-btn" lay-submit="" lay-filter="editCallRatio">立即提交</button>
							<button type="reset" class="layui-btn layui-btn-primary">重置</button>
						</div>
					</div>
				</div>
			</div>
		</div>
	</form>
	<script type="text/javascript">
		var tempCallingprovince = "${callRatio.callingProvince}";
		var tempCallingcity = "${callRatio.callingCity}";
		var tempCalledprovince = "${callRatio.calledProvince}";
		var tempCalledcity = "${callRatio.calledCity}";
		var tempRoamCity = "${callRatio.roamCity}";
	</script>
	<script type="text/javascript" src="${path }/static/layui/layui.js"></script>
	<script type="text/javascript" src="${path }/static/page/callRatioAnalysis/callRatioAnalysisEdit.js"></script>
</body>
</html>